##
## Makefile for libmy in /home/goupil_r//local/libmy
## 
## Made by robin goupil
## Login   <goupil_r@epitech.net>
## 
## Started on  Mon Oct 22 08:54:19 2012 robin goupil
## Last update Sun Nov 18 16:19:54 2012 robin goupil
##

H=	./my.h

SRC=	my_aff_alpha.c \
	my_aff_chiffre.c \
	my_aff_comb2.c \
	my_aff_comb.c \
	my_aff_combn.c \
	my_aff_params.c \
	my_aff_revalpha.c \
	my_evil_str.c \
	my_factorielle_it.c \
	my_factorielle_rec.c \
	my_find_prime_sup.c \
	my_getnbr_base.c \
	my_getnbr.c \
	my_isneg.c \
	my_is_prime.c \
	my_power_it.c \
	my_power_rec.c \
	my_putchar.c \
	my_putnbr_base.c \
	my_put_nbr.c \
	my_putstr.c \
	my_rev_params.c \
	my_revstr.c \
	my_showmem.c \
	my_showstr.c \
	my_show_wordtab.c \
	my_sort_int_tab.c \
	my_square_root.c \
	my_strcapitalize.c \
	my_strcat.c \
	my_strcmp.c \
	my_strcpy.c \
	my_strdup.c \
	my_char_isalpha.c \
	my_char_isnum.c \
	my_str_isalpha.c \
	my_str_islower.c \
	my_str_isnum.c \
	my_str_isprintable.c \
	my_str_isupper.c \
	my_strlcat.c \
	my_strlen.c \
	my_strlowcase.c \
	my_strncat.c \
	my_strncmp.c \
	my_strncpy.c \
	my_strstr.c \
	my_str_to_wordtab.c \
	my_strupcase.c \
	my_swap.c \
	convert_base.c \
	is_big_endian.c \
	my_swap_ptr.c \
	my_memset.c \
	xmalloc.c \
	xfree.c \
	xrealloc.c \
	my_itos.c \
	my_printf.c \
	my_putnbr_double.c

OBJ=	$(SRC:.c=.o)

NAME=	libmy.a

all:		$(NAME)

$(NAME):	$(SRC)
	@echo "cc sources"
	@cc -c $(SRC)
	@echo "ar rc $(NAME)"
	@ar rc $(NAME) $(OBJ)
	ranlib $(NAME)
	cp $(NAME) ../
	cp $(H) ../../src/include

clean:
	@rm -f $(OBJ)

fclean:		clean
	@rm -f $(NAME)

re:	fclean	$(NAME)

.PHONY:	all $(NAME) clean fclean re